<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" component="$UI/system/components/justep/window/window" design="device:mobile"
  xid="window">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;left:16px;top:246px;"> 
    <div component="$UI/system/components/justep/data/baasData" xid="mainData"
      directDelete="true" autoLoad="true" idColumn="fID" queryAction="queryVisual_data_table"
      tableName="visual_data_table" url="/Highde/data_action" saveAction="saveVisual_data_table"
      confirmRefresh="false" limit="10"> 
      <column label="ID" name="fID" type="String" xid=""/>  
      <column label="点名称" name="fPointName" type="String" xid=""/>  
      <column label="数据点类型" name="fPointType" type="String" xid=""/>  
      <column label="比例变比" name="fRange" type="Float" xid=""/>  
      <column label="标准值" name="fStandardValue" type="Double" xid=""/>  
      <column label="显示名称" name="fDis" type="String" xid=""/>  
      <column label="所属设备" name="fEquipID" type="String" xid=""/>  
      <column label="上次记录数据" name="fLastRecordData" type="Double" xid=""/>  
      <column label="数据单位" name="fUnit" type="String" xid=""/>  
      <master xid="default5"/>  
      <filter name="filter0" xid="filter0"/>
    </div>  
    <div component="$UI/system/components/justep/data/baasData" autoLoad="true"
      xid="treeViewData" queryAction="queryEquiptreeview" url="/Highde/tree_action"
      tableName="equiptreeview" idColumn="fNodeId" limit="10" isTree="true" saveAction="saveEquiptreeview"
      onIndexChanged="treeViewDataIndexChanged" onCreate="treeViewDataCreate"> 
      <treeOption xid="default39" parentRelation="fParentID" delayLoad="true" rootFilter="fNodeId='lossage'"/>  
      <column label="fNodeId" name="fNodeId" type="String" xid="default1"/>  
      <column label="fNodeName" name="fNodeName" type="String" xid="default2"/>  
      <column label="fParentID" name="fParentID" type="String" xid="default3"/>  
      <column label="fTableName" name="fTableName" type="String" xid="default4"/>
    </div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="dataSelection" idColumn="id">
   <column name="id" type="String" xid="xid13"></column>
   <data xid="default6">[{}]</data></div></div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="windowDialogCurve" src="$UI/highde/modbusItems/main/realDataCurveActivity.w" style="top:42px;left:252px;"></span>
  <div component="$UI/system/components/justep/wing/wing" class="x-wing" xid="wing1"> 
    <div class="x-wing-left" xid="left1" style="background-color:#D1D1D1;width:40%;"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar"
        xid="titleBar1" title="设备选择"> 
        <div class="x-titlebar-left" xid="div2"/>  
        <div class="x-titlebar-title" xid="div3">设备选择</div>  
        <div class="x-titlebar-right reverse" xid="div4"/>
      </div>  
      <div component="$UI/system/components/justep/tree/tree" class="x-tree x-inner-scroll"
        xid="tree1" data="treeViewData" labelColumn="fNodeName" rootLabel="用户"> 
        <div class="x-tree-head" xid="div8"> 
          <ul component="$UI/system/components/bootstrap/breadcrumb/breadcrumb"
            class="breadcrumb"/>
        </div>  
        <div class="x-tree-content x-scroll-view" xid="div7"> 
          <div component="$UI/system/components/justep/scrollView/scrollView"
            supportPullDown="true" supportPullUp="true" hScroll="false" vScroll="true"
            hScrollbar="false" vScrollbar="true" bounce="true" class="x-scroll" xid="scrollView1"> 
            <div class="x-content-center x-pull-down container" xid="div6"> 
              <i class="x-pull-down-img glyphicon x-icon-pull-down" xid="i7"/>  
              <span class="x-pull-down-label" xid="span7">下拉刷新...</span>
            </div>  
            <ul class="x-tree-template x-scroll-content" xid="treeTemplateUl1"> 
              <div component="$UI/system/components/justep/row/row" class="x-row"
                xid="row2"> 
                <div class="x-col" xid="col3"> 
                  <li class="x-tree-link" xid="li1" bind-css="{'account-income' :  val(&quot;fNodeId&quot;) == $model.dataSelection.val(&quot;id&quot;),'account-payout' : val(&quot;fNodeId&quot;) != $model.dataSelection.val(&quot;id&quot;)}"> 
                    <!-- <div component="$UI/system/components/justep/output/output"
                      class="x-output" xid="output2" bind-ref="ref(&quot;fNodeName&quot;)"/> -->
                      
                    <label xid="label1" bind-text='ref("fNodeName")'></label>
                  </li> 
                </div> 
              </div> 
            </ul>  
            <div class="x-content-center x-pull-up" xid="div5"> 
              <span class="x-pull-up-label" xid="span8">加载更多...</span>
            </div> 
          </div> 
        </div> 
      </div> 
    </div>  
    <div class="x-wing-content" xid="content1"> 
      <div class="x-wing-backdrop" xid="div1"/>  
      <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"> 
        <div class="x-panel-top"> 
          <div component="$UI/system/components/justep/titleBar/titleBar" title="目视数据"
            class="x-titlebar"> 
            <div class="x-titlebar-left"> 
              <a component="$UI/system/components/justep/button/button" label=""
                class="btn btn-link btn-only-icon" icon="linear linear-menu" onClick="backBtnClick"
                xid="backBtn"> 
                <i class="linear linear-menu"/>  
                <span/> 
              </a> 
            </div>  
            <div class="x-titlebar-title">目视数据</div>  
            <div class="x-titlebar-right reverse"/> 
          </div> 
        </div>  
        <div class="x-panel-content"> 
          <div xid="mainList" class="x-list" component="$UI/system/components/justep/list/list"
            data="mainData" limit="6"> 
            <div class="x-list-head"/>  
            <ul class="x-list-template"> 
              <li> 
                <div component="$UI/system/components/justep/row/row" class="x-row x-row-center" style="border-bottom-style:groove;"> 
                  <div class="x-col x-col-10" bind-click="listRowClick"> 
                    <label class="text-success bg-primary center-block h2" bind-text="ref('fPointType')"/>  
                    <!-- <span class="font-bold x-output" component="$UI/system/components/justep/output/output"
                  data="mainData" bind-ref="ref('fPointName')"/>  --> 
                  </div>  
                  <div class="x-col x-col-fixed" xid="col4" bind-click="listRowClick"><div component="$UI/system/components/justep/row/row" class="x-col"> 
                    <div class="x-row" component="$UI/system/components/justep/row/row" />  
                    <div class="x-row" component="$UI/system/components/justep/row/row"> 
                      <div class="x-col"> 
                        <label xid="label3" class="center-block h4" bind-text="val(&quot;fPointName&quot;)" /> 
                      </div>  
                      <div class="x-col"> 
                        <label class="center-block h4" bind-text="val(&quot;fDis&quot;)" />  
                        <!-- <span class="font-bold x-output" component="$UI/system/components/justep/output/output"
                      data="mainData" bind-ref="ref('fPointType')"/>   --> 
                      </div> 
                    </div>  
                    <div class="x-row" component="$UI/system/components/justep/row/row"> 
                      <div class="x-col"> 
                        <label xid="label3" class="center-block h5" bind-text="label(&quot;fStandardValue&quot;)" /> 
                      </div>  
                      <div class="x-col"> 
                        <label xid="label3" class="center-block h5" bind-text="label(&quot;fLastRecordData&quot;)" /> 
                      </div> 
                    </div>  
                    <div class="x-row" component="$UI/system/components/justep/row/row"> 
                      <div class="x-col"> 
                        <span class="font-bold x-output" component="$UI/system/components/justep/output/output" data="mainData" bind-ref="ref('fStandardValue')" />
                      </div>  
                      <div class="x-col x-col-20"> 
                        <span class="font-bold x-output" component="$UI/system/components/justep/output/output" data="mainData" bind-ref="ref('fUnit')" xid="output1" />
                      </div>  
                      <div class="x-col"> 
                        <span class="font-bold x-output" component="$UI/system/components/justep/output/output" data="mainData" bind-ref="ref('fLastRecordData')" />
                      </div>  
                      <div class="x-col x-col-20" xid="col1">
                        <span class="font-bold x-output" component="$UI/system/components/justep/output/output" data="mainData" bind-ref="ref('fUnit')" />
                      </div>
                    </div> 
                  </div></div>  
                  <div class="x-col x-col-10"> 
                    <a component="$UI/system/components/justep/button/button"
                      label="点检" class="btn btn-default btn-only-label" icon="icon-chevron-right"
                      xid="editBtn"> 
                      <i class="icon-chevron-right"/>  
                      <span>点检</span> 
                    </a> 
                  </div> 
                </div> 
              </li> 
            </ul> 
          </div> 
        <div xid="div9" class="text-success bg-success center-block h2" style="text-align:center" bind-visible="$model.mainData.count() &lt;= 0">请在左侧边栏选择您想查看的设备</div></div> 
      </div>
    </div> 
  </div>
</div>
